<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/includePage/commonInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>文章分类</title>
		<%@ include file="/common/includePage/commonHeader.jsp"%>
		<link rel="StyleSheet" href="<%=contextPath%>/plugin/dtree/dtree.css" type="text/css" />
		<script type="text/javascript" src="<%=contextPath%>/plugin/dtree/dtree.js"></script>
	</head>
	<body>
		<div class="dtree">
			<script type="text/javascript">
				<!--
				var d = new dTree('d','<%=contextPath%>/plugin/dtree');
				//d.add(0,-1,'My example tree','#','显示标题','blank','/plugin/dtree/img/base.gif','打开的图标','是否打开');
				d.add(0,-1,'文章分类');
				<c:forEach items="${categoryForm.childs}" var="category">
					d.add(<c:out value="${category.PK.id}"/>
						,<c:out value="${category.parentId}"/>
						,'<c:out value="${category.name}"/>'
						,'<%=contextPath%>/ipp/ArticleAction.getArticlesByCategory.action?articleForm.categoryId=<c:out value="${category.PK.id}"/>'
						,'','workFrame'
						,'<%=contextPath%>/plugin/dtree/img/page.gif'
						,'<%=contextPath%>/plugin/dtree/img/page.gif');
				</c:forEach>
				
				document.write(d);
				//-->
			</script>

		</div>

	</body>
</html>
